<template name="App_Header">
	<nav id="top_nav" class="navbar navbar-default navbar-fixed-top navigation-clean-search">
        <div class="container">
            <div class="navbar-header"><a class="navbar-brand navbar-link" href="/">万车汇 </a>
                <button class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
            </div>
            <div class="collapse navbar-collapse" id="navcol-1">
                <ul class="nav navbar-nav">
									{{#if isLogin}}
										   <li class="cust-nav-item" role="presentation"><a href="/">广场 </a></li>
									 {{else}}
										   <li class="cust-nav-item" role="presentation"><a href="/">首页 </a></li>
									 {{/if}}

                    <li  class="cust-nav-item" role="presentation"><a href="/products">产品 </a></li>
                    <li  class="cust-nav-item" role="presentation"><a href="/rule">   规则 </a></li>
                </ul>
                <div class="navbar-form navbar-left" action="/search" target="_self">
                    <div class="form-group">
                        <label class="control-label" for="search-field"><i class="glyphicon glyphicon-search"></i></label>
                        <input class="form-control search-field" type="search" name="search" placeholder="商品/页面" id="search-field">
                    </div>
                </div>

              {{#if currentUser}} 
                  {{> header_user_logged }}
                {{else}}
                  {{> header_user_not_logged }}
                {{/if}}
                <ul class="nav navbar-nav"></ul>
            </div>
        </div>
    </nav>

</template>
